<template>
	<view>
		<view class="">
			{{title}}
		</view>
		
		<view class="">
			{{content}}
		</view>
		
		<view class="">
			{{num}}
		</view>
		
		<view class="">
			{{stu}}
		</view>
		
	</view>
</template>

<script>
	export default {
		name:"my",
		data() {
			return {
				title: 'hello world!'
			};
		},
		// 可接收的参数
		props:{
			content: {
				type: String,
				default:'abc',
				// required:true
			},
			num: 0,
			stu: {
				type: Object
			}
		}
		
	}
</script>

<style>

</style><template>
	<view>
		<view class="">
			{{title}}
		</view>
		
		<view class="">
			{{content}}
		</view>
		
		<view class="">
			{{num}}
		</view>
		
		<view class="">
			{{stu}}
		</view>
		
	</view>
</template>

<script>
	export default {
		name:"my",
		data() {
			return {
				title: 'hello world!'
			};
		},
		// 可接收的参数
		props:{
			content: {
				type: String,
				default:'abc',
				// required:true
			},
			num: 0,
			stu: {
				type: Object
			}
		}
		
	}
</script>

<style>

</style>
